<!--- extract all accessible Records --->
<CFQUERY NAME="GetWSFiles" DATASOURCE="#client.company_dsn#">
	SELECT *
	FROM ECRGWORKSCHED
	WHERE RECCREATEDBY='#CLIENT.USERID#' OR ISSHARED='Y'
	ORDER BY WSGROUP, WSDESCRIPTION
</CFQUERY>

<CFMODULE TEMPLATE="#client.common_path#cfm_wswindow.cfm" TITLE="Browse #nameTitle# Manager">

<CFOUTPUT>
	<TABLE BORDER=0 CELLSPACING=2 CELLPADDING=2 BGCOLOR="#client.color_grphead#" WIDTH="100%">
		<FORM ACTION="#getFileFromPath(getBaseTemplatePath())##urlVariables#" METHOD="post">
			<TR>
				<TD NOWRAP>
					<INPUT TYPE="submit" NAME="btnAddWS" VALUE="New #nameType# File" CLASS="bitbtn">
					<INPUT TYPE="submit" NAME="btnRefresh" VALUE="Refresh" CLASS="bitbtn">
					<INPUT CLASS="bitbtn" TYPE="submit" NAME="btnBackAction" VALUE="Back">
				</TD>
			</TR>
		</FORM>
	</TABLE>
</CFOUTPUT>
<TABLE BORDER=0 CELLSPACING=1 CELLPADDING=2 WIDTH="100%">
	<CFOUTPUT>
	<TR BGCOLOR="#client.color_tblhead#">
		<TD HEIGHT=18> </TD>
		<TD ALIGN="CENTER" CLASS="boldwhite">Group</TD>
		<TD ALIGN="CENTER" CLASS="boldwhite">Description</TD>
		<TD ALIGN="CENTER" CLASS="boldwhite">eForm</TD>
		<TD ALIGN="CENTER" CLASS="boldwhite">Routable</TD>
		<TD ALIGN="CENTER" CLASS="boldwhite">Shared</TD>
		<TD ALIGN="CENTER" CLASS="boldwhite">Author</TD>

	</TR>
	</CFOUTPUT>
	<CFIF GetWSFiles.RecordCount>
		<CFOUTPUT QUERY="GetWSFiles">
			<CFQUERY NAME="qryGeteForms" DATASOURCE="#client.company_dsn#">
				SELECT FORMCODE,DESCRIPTION,PROCESSCODE FROM ECRGFORMS WHERE FORMCODE = '#FORMCODE#'
			</CFQUERY>
			<CFSET canRoute="No">
			<CFIF qryGeteForms.PROCESSCODE NEQ "">
				<CFSET canRoute="Yes">
			</CFIF>
			<CFSET encWSID = urlencodedformat(encrypt(GetWSFiles.WSCODE, client.ek))>
			<TR BGCOLOR="#IIf(CurrentRow Mod 2, "client.color_tblset2", "client.color_tblset1")#" VALIGN="top">
				<TD ALIGN="CENTER" NOWRAP CLASS="regular11" WIDTH="20%">
					&nbsp;
					<A HREF="#GetFileFromPath(getBaseTemplatePath())#?edit=#encWSID##urlVariables2#" CLASS="regular11">edit</A>
					&nbsp;
					<A CLASS="regular11" HREF="#GetFileFromPath(getBaseTemplatePath())#?delete=#encWSID##urlVariables2#" ONCLICK="javascript: return confirmThis('Delete this eWorkSked from the registry?');">delete</A>
					&nbsp;
					<A HREF="#GetFileFromPath(getBaseTemplatePath())#?replicate=#encWSID##urlVariables2#" CLASS="regular11">copy</A>
					&nbsp;
				</TD>
				<TD>&nbsp;&nbsp;#WSGROUP#</TD>
				<TD>&nbsp;&nbsp;#WSDESCRIPTION#</TD>
				<TD>&nbsp;&nbsp;#qryGeteForms.DESCRIPTION#</TD>
				<TD>&nbsp;&nbsp;#canRoute#</TD>
				<TD>&nbsp;&nbsp;#ISSHARED#</TD>
				<TD>&nbsp;&nbsp;#RECCREATEDBY#</TD>

			</TR>
		</CFOUTPUT>
	 <CFELSE>
		<TR>
			<TD COLSPAN=2 align="center"><b>No Records Found</b></TD>
		</TR>
	 </CFIF>
	<CFOUTPUT>
		<TR BGCOLOR="#client.color_tblfoot#">
			<TD COLSPAN=7	 CLASS="boldwhite" HEIGHT=18>&nbsp;#GetWSFiles.RecordCount# records found.</TD>
		</TR>
	</CFOUTPUT>
</TABLE>
<CFMODULE TEMPLATE="#client.common_path#cfm_wswindow.cfm" TOP="False">
